#ifndef TEACHER_H
#define TEACHER_H

#include <QObject>

class teacher : public QObject
{
    Q_OBJECT
public:
    explicit teacher(QObject *parent = nullptr);

signals:
    //老师发出信号
    //自定义信号写到signals下
    //自定义信号无返回值 void   只需要声明，不需要实现
    //可以有参数，可以重载

    //无参
    void hungry();
    //有参重构
    void hungry(QString food_name);

};

#endif // TEACHER_H
